SoundManager 2: Bar UI ("second draft" version)

THIS IS A TEST PAGE FOR SM2 RUFFLE FUNCTIONALITY

A configurable, resolution-independent HTML + SVG-based UI for playing collections of sounds.

Standard UI

Extra controls inline, playlist open by default

Compact UI, single item

  • 32" Gong Sounds
0:00
0:00

Compact UI, full width

  • Adrian Glynn - Seven Or Eight Days
0:00
0:00

repeat test

Audio files must be put into the playlist section to work. Will not do anything on inspect element. Must save changes to html to take effect!

  • Adrian Glynn - Seven Or Eight Days
0:00
0:00

JavaScript API

Once initialized, players will be added to the array window.sm2BarPlayers. You can access and control players in this fashion. For example, window.sm2BarPlayers[0].actions.play() will start the first player UI. You can also toggle the playlist "drawer" via window.sm2BarPlayers[0].actions.menu().

Credits

Thanks to SonReal and Adrian Glynn for making these demos sound notably better.

Sample textures are from subtlepatterns.com. "If you need more, that's where to get 'em."

SVG icons are from IcoMoon, "Entypo" (CC-BY SA 3.0) and "IcoMoon Free" (GPL) sets.

Missing button images? Make sure your server is returning an appropriate MIME type for SVG assets. An .htaccess example: AddType image/svg+xml svg svgz

  • SonReal - LAExplicit
0:00
0:00